package com.hyq.learn.api.util;

import org.apache.commons.codec.binary.Base64;

/**
 * @author mochenghui
 * @date 2020/2/27 14:41
 */
public class ImgUtil {

    /**
     * 获取图片字节流数组
     *
     * @param imageBase
     * @return
     */
    public static byte[] getImgBytes(String imageBase) {
        return Base64.decodeBase64(imageBase);
    }

}
